﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="LoginStatus.aspx.vb" Inherits="LoginStatus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table>
        <tr><div>
            <asp:Label runat="server" ID="Label1">Show Records:</asp:Label><asp:TextBox ID="TextBox1" runat="server">200</asp:TextBox><asp:Button ID="QueryBtn" runat="server" Text="Click To Query" /></div>
        </tr>
        <tr>
            <asp:ListView ID="ListView1" runat="server" DataSourceID="ObjectDataSource1" EnableModelValidation="True">
                <LayoutTemplate>
                    <table runat="server">
                        <tr runat="server">
                            <td runat="server">
                                <table id="itemPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF; border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px; font-family: Verdana, Arial, Helvetica, sans-serif;">
                                    <tr id="Tr1" runat="server">
                                        <th id="Th1" runat="server">User</th>
                                        <th id="Th2" runat="server">Date</th>
                                        <th id="Th3" runat="server">Status
                                        </th>
                                    </tr>
                                    <tr id="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr runat="server">
                            <td runat="server" style="text-align: center; background-color: #FFCC66; font-family: Verdana, Arial, Helvetica, sans-serif; color: #333333;">
                                <asp:DataPager ID="DataPager1" runat="server" PageSize="30">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                        <asp:NumericPagerField />
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                    </table>

                </LayoutTemplate>
                <EmptyDataTemplate>
                    <table runat="server" style="background-color: #FFFFFF; border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;">
                        <tr>
                            <td>No data was returned.</td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <ItemTemplate>

                    <tr style="background-color: #FFFBD6; color: #333333;">
                        <td>
                            <asp:Label ID="CollectionTypeLabel" runat="server"
                                Text='<%# Eval("LoginName")%>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%# Eval("LoginDate")%>' />
                        </td>
                        <td>
                            <asp:Label  runat="server" Text='<%# Eval("LoginStatus")%>' />
                        </td>
                    </tr>

                </ItemTemplate>
                <SelectedItemTemplate>
                    <tr style="background-color: #FFCC66; font-weight: bold; color: #000080;">
                    </tr>
                </SelectedItemTemplate>
            </asp:ListView>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="retrieve" TypeName="Impl.LoginCollection">
                <SelectParameters>
                    <asp:ControlParameter ControlID="TextBox1" DefaultValue="200" Name="noRecord" PropertyName="Text" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </tr>
    </table>
</asp:Content>

